<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
  let ws=new WebSocket("ws://localhost:8081/TestWebsocket/1")
  ws.onopen=function (){
    ws.send("hello")
  }
  ws.onmessage=function (message){
    console.log(message.data)
  }
</script>
</html>